a, b = map(int, input().split())
c = (b-a)/2
x = (a-c)/2
y = x+c
print(x, y, sep=' ')
